import axios from '@/services/api'

export function getUserList(params) {
  return axios.post('/system/user/list', params)
}

export function addUser(data) {
  return axios.post('/system/user/add', data)
}

export function updateUser(data) {
  return axios.post('/system/user/update', data)
}

export function deleteUser(ids) {
  return axios.post('/system/user/delete',ids )
}

export function getUserById(id) {
  return axios.post('/system/user/selectByPrimaryKey', 'id='+id )
}

export function updatePassword(data) {
  return axios.post('/system/user/updatePassword', data)
}